import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import './assets/font/font.css'
import './config/http.config'
import { createPinia } from 'pinia'

/***
 * 完整导入 element-plus
 */
//引入element-plus
import ElementPlus from 'element-plus'
//引入element-plus相关样式
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

const app = createApp(App)
//挂在 vue-router
app.use(router)
app.use(createPinia())
//挂载 element-plus
app.use(ElementPlus, { locale: zhCn })
app.mount('#app')
